package com.zmc.common.config;

/**
 * 读取项目相关配置
 * @author zmc
 */
public class SysConfig {
    /**
     * 项目名称
     */
    public static final String NAME = "mall-admin";

    /**
     * 版本
     */
    public static final String VERSION = "1.0.0";

    /**
     * 版权年份
     */
    public static final String  COPYRIGHT_YEAR = "2024";

    /**
     * 上传路径
     */
    public static final String PROFILE = "D:/zmc/uploadPath";

    /**
     * 获取地址开关
     */
    public static final boolean ADDRESS_ENABLED = false;

    /**
     * 验证码类型
     */
    public static final String CAPTCHA_TYPE = "math";

    /**
     * 获取导入上传路径
     */
    public static String getImportPath() {
        return PROFILE + "/import";
    }

    /**
     * 获取头像上传路径
     */
    public static String getAvatarPath() {
        return PROFILE + "/avatar";
    }

    /**
     * 获取下载路径
     */
    public static String getDownloadPath() {
        return PROFILE + "/download/";
    }

    /**
     * 获取上传路径
     */
    public static String getUploadPath() {
        return PROFILE + "/upload";
    }
}
